package com.movie.demo.pojo;

import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.IdType;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

@Data
@NoArgsConstructor
@AllArgsConstructor
@TableName("movie")
public class Movie {
    @TableId(type = IdType.AUTO)
    private int mid;
    private String chinese_name;
    @TableField
    private String english_name;
    @TableField
    private String img_url;
    @TableField
    private String type;
    @TableField
    private String length;
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date release_date;
    @TableField
    private String introduction;
    @TableField
    private String rating;
    @TableField
    private String country;
    @TableField
    private String actors;
    @TableField
    private String director;
    @TableField
    private float price;
    @TableField
    private int state;

}
